<?php
/*
array(3) {
  ["decorates"]=>
  array(1) {
    [0]=>
    string(10) "produceNum"
  }
  ["num"]=>
  string(1) "1"
  ["type"]=>
  string(14) "currencyDomain"
}
*/
require("Abstract.class.php");
class CurrencyDomain extends Domain 
{
	private $_domainName;
	private $_num;
	
	public function __construct($num)
	{
		parent::__construct();
		$this->_num = $num;	
	}
	
	public function produceNum()
	{
		$result = array();
		for ($i=0; $i<=str_repeat('9', $this->_num); $i++) {
			$result[] = $i;
		}
		return $this->addSuffixes($result);
	}
	
	public function produceChar()
	{
		$result = array();
		for ($i='a'; $i<str_repeat('z', $this->_num); $i++) {
			$result[] = $i; 
		}
		return $this->addSuffixes($result);
	}
}

?>